package multipowny.ssrr;

public class ChanceTransaction extends Chance{
	int transaction;
	boolean positive;
	MultipownyActivity multipownyActivity;
	
	public ChanceTransaction(String theTitel, String theStory, int theTransaction, boolean thePositive, int theChanceID){
		super();
		titel = theTitel;
		story = theStory;
		transaction = theTransaction;
		positive = thePositive;
		chanceID = theChanceID;
	}
	public void onChanceTransaction(){
		if (positive == true){
			multipownyActivity.activePlayer.addMoney(transaction);
		}else{
			multipownyActivity.activePlayer.loseMoney(transaction);
		}
	}
	
}
